package com.testmall.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.testmall.entity.Product;
import com.testmall.entity.common.PageBean;
import com.testmall.mapper.ProductMapper;
import com.testmall.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
  * @Description:
  * @Author: littleDesire
  * @Date: 2022-06-21 14:29
  * @Version: 1.0
  *
  */
@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements ProductService {

    @Autowired
    ProductMapper productMapper;

    @Override
    public PageBean queryProduct(Map map) {
        return null;
    }

    @Override
    public List<Product> queryCartProduct(String[] proId) {
        List<String> list = Arrays.asList(proId);
        return productMapper.selectBatchIds(list);
    }
}
